package com.yanqu.road.server.cmd.activity.huashigang;

import com.yanqu.road.pb.huashigang.HuaShiGangProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.cross.battle.HuaShiGangMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_HUA_SHI_GANG_ATTACKED_ELITE_LIST, desc = "花石纲有人打过的精英怪列表")
public class CrossGetAttackedEliteListCmd extends CrossCommand {

    int activityId;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        HuaShiGangProto.CrossGetHuaShiGangEliteListReqMsg reqMsg = HuaShiGangProto.CrossGetHuaShiGangEliteListReqMsg.parseFrom(packet.getBytes());
        activityId = reqMsg.getActivityId();
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        HuaShiGangMgr.getAttackedEliteMonsterList(activityId, serverId, packet.getPlayerId());
    }

    @Override
    public void sendData() {

    }
}
